//
//  OthetDestinationViewCell.m
//  WhereToTravel
//
//  Created by dlios on 15/10/13.
//  Copyright © 2015年 zhoushengmin. All rights reserved.
//

#import "OthetDestinationViewCell.h"
#define W self.contentView.frame.size.width/180
#define H self.contentView.frame.size.height/60
@implementation OthetDestinationViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self creatView];
    }
    return self;
}
- (void)creatView {
    [super createView];
    
    self.viewLine = [[UIView alloc] initWithFrame:CGRectMake(10 * W, 5 * H, W * 160, H * 50)];
    [self.contentView addSubview:self.viewLine];
    self.viewLine.backgroundColor = [UIColor whiteColor];
    
    self.topName = [[UILabel alloc]init];
    [self.viewLine addSubview:self.topName];
    self.topName.frame = CGRectMake(0, 0, 160*W, 25*W);
    self.topName.textAlignment =  NSTextAlignmentCenter;
    self.topName.font = [UIFont systemFontOfSize:18];
    self.topName.backgroundColor = [UIColor clearColor];
    
    self.engName = [[UILabel alloc]init];
    [self.viewLine addSubview:self.engName];
    self.engName.frame =CGRectMake(0, 25*W, 160*W, 25*W);
    self.engName.font = [UIFont systemFontOfSize:15];
    self.engName.textAlignment = NSTextAlignmentCenter;
    self.engName.backgroundColor = [UIColor clearColor];
}

@end
